using System;
using System.Collections.Generic;
using System.Text;

namespace BuildingStructuralElements
{
    [Serializable ]
    public class Constrain
    {
        public Constrain() : this(true, true, true, true, true, true) { }
        public Constrain(bool dx, bool dy, bool dz, bool rx, bool ry, bool rz)
        {
            this.dx = dx;
            this.dy = dy;
            this.dz = dz;
            this.rx = rx;
            this.ry = ry;
            this.rz = rz;
        }

        private bool dx;

        public bool Dx
        {
            get { return dx; }
            set { dx = value; }
        }

        private bool dy;

        public bool Dy
        {
            get { return dy; }
            set { dy = value; }
        }

        private bool dz;

        public bool Dz
        {
            get { return dz; }
            set { dz = value; }
        }

        private bool rx;

        public bool Rx
        {
            get { return rx ; }
            set { rx = value; }
        }

        private bool ry;

        public bool Ry
        {
            get { return ry; }
            set { ry = value; }
        }

        private bool rz;

        public bool Rz
        {
            get { return rz; }
            set { rz = value; }
        }

        public void  Clear()
        {
            Dx =false ;
            Dy =false ;
            Dz =false ;
            Rx =false ;
            Ry =false ;
            Rz =false ;
            
        }

    }
}
